package com.yhg.qxmall.cartorder.feign;

import com.yhg.qxmall.cartorder.vo.MemberAddressVo;
import com.yhg.qxmall.cartorder.vo.MemberInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 凌月青缃
 * @date 2020/12/22
 */
@FeignClient("qxmall-member")
public interface FrontMemberService {

    @GetMapping(value = "/member/memberreceiveaddress/{memberId}/addresses")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);

    @GetMapping("member/member/getUserInfo")
    MemberInfoTo getUserInfo(@RequestParam Long memberId);

}
